package com.woniuxy.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface RbacManagerDao2 {
    @Select("select * from rbac_manager where id = #{id}")
    Map<String,Object> findOne(int id);
    @Select("select * from rbac_manager")
    List<Map<String, Object>> findAll();
    @Insert("insert into rbac_manager (account,password,status) values(#{account},#{password},#{status})")
    Integer save(Map<String, String> manager);
}
